package com.micromsg.basic.sys.model;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * 用户表实体类
 *
 * @author yangyang
 * @date 2024/04/06
 **/
@Data
@Table(name = "user")
public class User {

    /**
     * 主键
     */
    @Id
    @Column(name = "ID")
    private String id;

    /**
     * 账号
     */
    @Column(name = "UID")
    private String uid;

    /**
     * 昵称
     */
    @Column(name = "NICKNAME")
    private String nickname;

    /**
     * 密码 可以使用加密存储
     */
    @Column(name = "PASSWORD")
    private String password;

    /**
     * 记录用户最后一次登录的时间
     */
    @Column(name = "LAST_LOGGED_IN")
    private Date lastLoggedIn;

    /**
     * 邮箱
     */
    @Column(name = "EMAIL")
    private String email;

    /**
     * 头像连接
     */
    @Column(name = "AVATAR")
    private String avatar;

    /**
     * 状态
     */
    @Column(name = "STATUS")
    private String status;

    /**
     * 创建时间
     */
    @Column(name = "CREATE_DATE")
    private Date createDate;

    /**
     * 修改时间
     */
    @Column(name = "UPDATE_DATE")
    private Date updateDate;
}
